                    <div class="module">
                        <div class="moduleFrame">
                            <div class="moduleHeader">
                                <span class="moduleIcon"><img src="<?php echo JS_PATH;?>/phuongmaiadv/g/icon.gif" alt="icon"/></span>
                                <div class="moduleTitle">
                            <?php
                            $allItems = $this->allItems;
                            $currentPage = $this->currentPage;

                            if ($currentPage) {
                                // check exists parent
                                if ($currentPage['all_parent']) {
                                    $allParent = explode(',', $currentPage['all_parent']);
                                    if (isset($allParent[0])) {
                                        $allCategory = $this->allCategory;
                                        foreach($allParent as $parentID):
                                            $parent = $allCategory[$parentID];
                                            // check to ignore root
                                            if ($parent['left'] != 1) {
                                            ?>
                                                <a href="<?php echo BASE_PATH . '/' . CURR_APP ?>?pid=<?php echo $parent['category_id']?>"><?php echo $parent['admin_title'];?></a> >> 
                                            <?php
                                            }
                                        endforeach;
                                    }
                                    echo $currentPage['admin_title'];
                                }
                            }
                            ?>

                                </div>
                            </div>
                            <div class="moduleContent">
                            <?php
                            if (isset($allItems[0])) {
                                foreach($allItems as $item):
                                ?>
                                <div style="padding: 10px 0px;text-align:justify;">
                                    <?php
                                    $path = pathinfo($item['item_image'], PATHINFO_DIRNAME);
                                    $fileName = pathinfo($item['item_image'], PATHINFO_BASENAME);
                                    ?>
                                    <table>
                                        <tr>
                                            <td><img src="<?=ImageUtil::getImage($path,$fileName,200,200, 100,true)?>" class="border"></img></td>
                                        </tr>
                                    </table>
                                    <div style="">
                                    <a href="<?php echo BASE_PATH . '/' . CURR_APP ?>/index/index/detail?pid=<?php echo $item->category_id; ?>&id=<?php echo $item->item_id; ?>"><?php echo $item->item_title; ?></a>
                                    <div style="padding: 10px 0px;font-size:13px;"><?php echo $item->item_short_description; ?></div>
                                    </div>
                                    <div style="clear:both;height:0px;"></div>
                                </div>
                                <?php
                                endforeach;
                                
                                echo $this->paging;
                            } // if items
                            ?>

                            </div>
                        </div>
                    </div>
